package com.mechmind.robotsocket.contribution;

import cn.elibot.robot.plugin.contribution.configuration.ConfigurationAPIProvider;
import cn.elibot.robot.plugin.contribution.configuration.ConfigurationNodeContribution;
import cn.elibot.robot.plugin.domain.data.DataModelWrapper;
import cn.elibot.robot.plugin.domain.script.ScriptWriter;

public class TestContribution implements ConfigurationNodeContribution {
    private ConfigurationAPIProvider configurationAPIProvider;
    private TestContributionView testContributionView;
    private DataModelWrapper dataModelWrapper;

    public TestContribution(ConfigurationAPIProvider configurationApiProvider,
                            TestContributionView testContributionView,
                            DataModelWrapper dataModelWrapper) {
        this.configurationAPIProvider = configurationApiProvider;
        this.testContributionView = testContributionView;
        this.dataModelWrapper = dataModelWrapper;

    }
    @Override
    public void contributionDestruction() {

    }

    /**
     6 * 配置节点视图 打开时激发(可用于视图打开时 功能或数据处理)
     7 */
    @Override
    public void onViewOpen() {

    }

    @Override
    public void onViewClose() {

    }

    /**
     * * (如果在任务中使用，且涉及生成脚本)生成脚本.
     * scriptWriter 用于生成脚本的 脚本写入句柄
     * @param scriptWriter a {@link ScriptWriter} instance
     */
    @Override
    public void generateScript(ScriptWriter scriptWriter) {

    }
}
